import request from '@/utils/request'

//通过科目id来查询该科目的所有标签
export const getAllExamineContent = (id) => {
    return request.get(`/exam/T_label/list?sub_id=${id}`,id);
};

//查询标签
export const getTagContent = (id) => {
    return request.get(`/exam/T_label/getALLlabel1?sub_id=${id}`,id);
};

//插入标签 课程id
export const addTitleTag = (data) => {
    return request.post('/exam/T_label?sub_id',data);
};

//更新标签 题目id 和更新的标签内容
export const updateTitleTag = (data) => {
    return request.put(`/exam/T_label/update?id=${data.id}&label=${data.label}`);
};

//删除标签
export const deleteTitleTag = (id) => {
    return request.delete(`/exam/T_label/delete?id=${id}`,id);
};

